put LocalVolumeList("noDialog:errGlobal") into volInfo
if errGlobal Γëá empty then
answer "Error: ΓÇ£" & errGlobal & "ΓÇ¥"
put empty into errGlobal
else
put volInfo into cd fld "volumes"
end if
end mouseUp
-- part 2 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=18 top=298 right=326 bottom=126
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: All Volumes
----- HyperTalk script -----
on mouseUp
global errGlobal
set cursor to watch
put VolumeList("", "noDialog:errGlobal") into volInfo
if errGlobal Γëá empty then
answer "Error: ΓÇ£" & errGlobal & "ΓÇ¥"
put empty into errGlobal
else
put volInfo into cd fld "volumes"
end if
end mouseUp
-- part 3 (field)
-- low flags: 00
-- high flags: 0007
-- rect: left=19 top=117 right=288 bottom=236
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 4
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Volumes
-- part contents for background part 38
----- text -----
27/50
-- part contents for background part 20
----- text -----
An XFCN which returns a carraige return delimited list of all locally mounted volumes - in other words non server volumes.
LocalVolumeList(["noDialog:"errorGlobal])
It correctly reports floppy drives and SCSI drives (traditional Hard drives, SyQuest drives, and CD-ROM drives) as local volumes. I have written it so that it should correctly report a Mac XL internal HD or HD20 as a local volume, but I haven't been able to test it.
-- part contents for background part 42
----- text -----
unit LocalVolumeList;
{}
{ brought to you by: Anup Murarka Eric Carlson }
{ ALINK: SKEPTIC ALINK: cyNic }
{ CIS: 76004,3356 }
{}
{ We are part of the Support Tools Development Group, }
{ Apple Computer, Inc. }
{}
{ please DO NOT contack Mac DTS for support of this code! }
{}
{ please DO contact the authors for support of this code! }
{}
{ Send comments, bug reports, requests to any of the above }
{ E-mail addresses or to:}
{}
{ (one of us) }
{ Apple Computer, Inc. }
{ 900 E. Hamilton, Ave. }
{ Campbell, CA 95008 }
{ M/S 72-L }
{}
{ Copyright: © 1989, 1990 by Apple Computer, Inc., all rights reserved. }